home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2004 April / SGI IRIX 6.5 Applications 2004 April.iso / dist / appletalk.idb / usr / etc / appletalk / getdistiller.z / getdistiller
Text File  |  2002-03-07  |  1KB  |  43 lines

  1. #!/bin/csh -f
  2. #    @(#)getdistiller    10.1    99/10/14    Xinet, Inc.
  3. #    Copyright (c) 1998 by Xinet, Inc.  All Rights Reserved.
  4. # xkspool RIP script that finds Adobe PDF Distiller on local machine
  5. #
  6. if (-x /usr/bin/ps2pdf) then
  7.     set types = ("Full PDF with exact fonts" "Full PDF with substituted fonts"\
  8.     "Per-page PDF with exact fonts" "Per-page PDF, substituted fonts" )
  9.     set args = ( "" "-f" "-p" "-p -f" )
  10. else if (-x /opt/Acrobat3/bin/distill)  then
  11.     set types = ("PDF verison 2.1" "PDF Version 3.0" )
  12.     set args = ( "-compatlevel 2.1" "-compatlevel 3.0" )
  13. else 
  14.     exit 1
  15. endif
  16.  
  17. if ($#argv > 0) then
  18.     if ("$1" == get) then
  19.         if ($#argv < 2) exit 1
  20.         set f = 1
  21.         while ($f <= $#types)
  22.             if ("$2" == "$types[$f]") then
  23.                 echo /usr/etc/appletalk/print2pdf $args[$f]
  24.                 exit 0
  25.             endif
  26.             @ f = $f + 1
  27.         end
  28.         exit 1
  29.     endif
  30.     if ("$1" == ppd) then
  31.         set ppd = /usr/adm/appletalk/ppds/DISTILLER.PPD
  32.         if (-r $ppd) echo $ppd
  33.         exit 0
  34.     endif
  35.     if ("$1" != list) exit 1
  36. endif
  37. set f = 1
  38. while ($f <= $#types)
  39.     echo cmi\:$types[$f]
  40.     @ f = $f + 1
  41. end
  42. exit 0
  43.